<!--
  To change this license header, choose License Headers in Project Properties.
  To change this template file, choose Tools | Templates
  and open the template in the editor.
-->



<%@ page contentType="text/html;charset=UTF-8" %>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" href="${resource(dir: 'css', file: 'main.css')}" type="text/css">
	<link rel="stylesheet" href="${resource(dir: 'css', file: 'mobile.css')}" type="text/css">
        <title>Login to the bakery</title>
    </head>
    <body>
        <g:form controller="login.LoginController" method="post">
            <div class="dialog">
                <h2>Enter your login details below:</h2>
                <hr>
                <table class="userForm">
                    <tr class='prop'>
                        <td valign='top' style='text-align:left;' width='20%'>
                            <label for='email'>Email:</label>
                        </td>
                        <td valign='top' style='text-align:left;' width='80%'>
                            <input id="email" type='text' name='email' value='${user?.email}' /> 
                        </td>
                    </tr>
                    <tr class='prop'>
                        <td valign='top' style='text-align:left;' width='20%'>
                            <label for='password'>Password:</label>
                        </td>
                        <td valign='top' style='text-align:left;' width='80%'>
                            <input id="password" type='password' name='password' value='${user?.password}' />
                        </td>
                    </tr>

                </table> 
            </div>    
            <div class="buttons">
                <g:actionSubmit value="Login!" action="doLogin" style="border:2px"/>
            </div>
            
            <p>Login with username: anneleen@test.com and password: 123456</p>
            <p>Login with username: ewoud@test.com and password: 123456</p>
            <p>Login with username: koen@test.com and password: 123456</p>
        </g:form>
    </body>
</html>
